#ifndef WND_CONNECTION_H
#define WND_CONNECTION_H

#include <QDialog>
#include <QAbstractButton>

#include "connectionlist.h"

namespace Ui {
class WndConnection;
}

class WndConnection : public QDialog
{
    Q_OBJECT
    
public:
    explicit WndConnection(QWidget *parent = 0);
    ~WndConnection();
    
private slots:

    void on_pushButton_clicked();

    void on_pushButton_4_clicked();

    void on_listWidget_currentRowChanged(int currentRow);

    void on_txtProfileName_textChanged(const QString &arg1);

    void on_txtServerName_textChanged(const QString &arg1);

    void on_txtUserName_textChanged(const QString &arg1);

    void on_txtPassword_textChanged(const QString &arg1);

    void on_txtDatabaseName_textChanged(const QString &arg1);

    void on_pushButton_3_clicked();

    void on_pushButton_5_clicked();


private:
    Ui::WndConnection *ui;

public:
    QDialog *wndLogin;
    ConnectionList cl;

    bool rowchanged;

    int ReadConnectionList();
    int WriteConnectionList();

private:
    void on_changes(const QString &arg1);
    void on_add(const QString &arg1);
};

#endif // WND_CONNECTION_H
